{volist name="lists" id="vo"}
<tr class="long-td">
    <td>{$vo.name}</td>    
    <td>
    	{eq name="vo.install" value="1"}
		    {switch name=$vo['status']}
		    {case value='1'}
		    <a href="javascript:void(0);" statusurl="{:url('status',['id'=>$vo['id'],'status'=>0])}" thisid="{$vo['id']}"  onclick="change_status(this);">
		        <div id="statushtml{$vo['id']}"><span class="label label-info">正常</span></div>
		    </a>
		    {/case}
		    {default /}
		    <a href="javascript:void(0);" statusurl="{:url('status',['id'=>$vo['id'],'status'=>1])}" thisid="{$vo['id']}" onclick="change_status(this);">
		        <div id="statushtml{$vo['id']}"><span class="label label-danger">禁用</span></div>
		    </a>
		    {/switch}
	    {/eq}
	</td>
    <td>
        {eq name="vo.install" value="0"}
        	<a href="javascript:;" installurl="{:url('install',['id'=>$vo['id']])}" thisid="{$vo['id']}" onclick="install_data(this)"  class="btn btn-primary btn-xs btn-outline"><i class="fa fa-paste"></i> 安装</a>
        {else/}
        	{eq name="vo.type" value="2"}
        		<a href="javascript:;" deployurl="{:url('deploy',['id'=>$vo['id']])}" thisid="{$vo['id']}" onclick="deploy_data(this)"  class="btn btn-primary btn-xs btn-outline"><i class="fa fa-paste"></i> 配置</a>
        	{/eq}

        	<a href="javascript:;" uninstallurl="{:url('uninstall',['id'=>$vo['id']])}" thisid="{$vo['id']}" onclick="uninstall_data(this)" class="btn btn-danger btn-xs btn-outline"><i class="fa fa-trash-o"></i> 卸载</a>
        {/eq}
    </td>
</tr>
{/volist}

<!--总页数-->
{include file="public/page_record" /}